﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>@ViewBag.ProjectName-水之云出品</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <script src="~/lib/jquery-3.4.1/jquery-3.4.1.min.js" charset="utf-8"></script>
    <link rel="icon" href="@ViewBag.LogoIcon">
</head>

<body class="layui-layout-body layuimini-all">
    <div style="height:800px"></div>
    <script src="~/lib/layui/layui.js" charset="utf-8"></script>
    <script src="~/js/lay-config.js?v=@WaterCloud.Code.GlobalContext.GetVersion()" charset="utf-8"></script>
    <script src="~/js/framework-ui.js?v=@WaterCloud.Code.GlobalContext.GetVersion()"></script>
    <script>
        layui.use(['jquery', 'common'], function () {
            var $ = layui.jquery,
                common = layui.common;
            $(function () {
                var data = JSON.parse(localStorage.getItem("WC_BoardList"));
                if (!!data) {
                    //父界面跳转
                    var firstHref = Array.isArray(data.viewList) ?data.viewList[0]: data.viewList;
                    top.window.location.href = firstHref.indexOf("?") != -1 ? firstHref + "&type=" + 1 : firstHref + "?type=" + 1;
                }
                else {
                    common.modalOpen({
                        title: "看板配置",
                        url: "/BoardHome/BoardSetting?type=" + 1,
                        width: "600px",
                        height: "550px",
                    });
                }
            });
            $('.login-out').on("click", function () {
                layer.msg('退出登录成功', function () {
                    localStorage.removeItem("currentBoard");
                    window.location.href = '../BoardLogin/OutLogin';
                });
            });
        });
    </script>

</body>

</html>
